import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Demo from '@/components/demo'
import Input from '@/components/input'

// 用户体验整体情况
import Main from '@/pages/main/main'
import Week from '@/pages/week/week'
import WeekDemo from '@/pages/week/demo'

// 俄罗斯旅行
import Tour from '@/pages/tour/tour'
import MainDemo from '@/pages/main/demo'

import Pic from '@/components/pic'
import Photo from '@/pages/main/photo'

import TestIndex from '@/pages/test/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/demo',
      name: 'Demo',
      component: Demo
    },
    {
      path: '/input',
      name: 'Input',
      component: Input
    },
    // 用户体验整体情况
    {
      path: '/main',
      name: 'Main',
      component: Main,
    },
    {
      path: '/main/demo',
      name: 'MainDemo',
      component: MainDemo,
    },
    {
      path: '/week',
      name: 'Week',
      component: Week,
    },
    {
      path: '/week/demo',
      name: 'WeekDemo',
      component: WeekDemo
    },
    {
      path: '/tour',
      name: 'Tour',
      component: Tour,
    },
    {
      path: '/pic',
      name: 'Pic',
      component: Pic,
    },
    {
      path: '/test/index',
      name: 'TestIndex',
      component: TestIndex,
    },
    {
      path: '/test/array',
      name: 'TestArray',
      component: () => import('@/pages/test/array')
    },
    {
      path: '/test/chart',
      name: 'TestChart',
      component: () => import('@/pages/test/chartList')
    }
  ]
})
